<extend name="Layout/application"/>
<block name="content">
    <div class="admin-content">

        <div class="am-cf am-padding">
            <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">清除缓存</strong> /
                <small>Clear Cache</small>
            </div>
        </div>
        <hr>

        <if session('success')>
        <div class="am-g" data-am-alert>
            <div class="am-u-md-12">
                <div class="am-alert am-alert-success" id="s">
                    <button type="button" class="am-close" onclick="window.close();">&times;</button>
                    {{:session('success')}}
                </div>
            </div>
        </div>
        </if>


        <div class="am-g">

            <div class="am-g am-margin-top">

                <div class="am-u-md-8 am-u-md-offset-2">
                    <a href="{{:url('delete')}}" data-method="delete" data-token=""
                       class="am-btn am-btn-success am-radius am-btn-block">
                        <i class="am-icon-refresh am-icon-spin"></i>
                        清除缓存
                    </a>
                </div>
            </div>
        </div>
    </div>
</block>
<block name="js">
    <script>
        $(function () {
            var num = 3;
            window.onload = function(){
                var s = window.setInterval(function(){
                    // document.getElementById("s").innerHTML= num;
                    num--;
                    if(num<=0){
                        $('#s').fadeOut(400);
                    }
                }, 1000);
            }

        })
    </script>
</block>